#include <iostream>
#include "searcher.hpp"

const std::string src_path = "data/output/raw.bin";

int main()
{
    Searcher* search = new Searcher();
    search->InitSearcher(src_path);

    std::string query;
    std::string json_string;
    while (true)
    {
        std::cout << "Please enter your search query:>";
        getline(std::cin, query);

        search->Search(query, &json_string);

        std::cout << json_string << std::endl;
    }

    return 0;
}